package com.example.demo.Server.Imp;

import com.example.demo.DAO.SelectionValueDao;
import com.example.demo.Entity.selectionValue;
import com.example.demo.Server.selectionValueServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
@Primary
public class selectionValueServerImp implements selectionValueServer {
    @Autowired
    SelectionValueDao dao;

    @Override
    public List<selectionValue> findAllSelect() {
        return dao.findAllSelect();
    }

    @Override
    public List<selectionValue> findDepartmentList() {
        return dao.findDepartmentList();
    }

    @Override
    public List<selectionValue> findAreaList() {
        return dao.findAreaList();
    }

    @Override
    public List<selectionValue> findTypeOneList() {
        return dao.findTypeOneList();
    }

    @Override
    public List<selectionValue> findTypeTwoList() {
        return dao.findTypeTwoList();
    }

    @Override
    public List<selectionValue> findFinancialFocusList() {
        return dao.findFinancialFocusList();
    }

    @Override
    public List<selectionValue> findTypeFourList() {
        return dao.findTypeFourList();
    }

    @Override
    public List<selectionValue> findTypeFiveList() {
        return dao.findTypeFiveList();
    }

    @Override
    public List<selectionValue> findTypeSixList() {
        return dao.findTypeSixList();
    }

    @Override
    public List<selectionValue> findSpecsList() {
        return dao.findSpecsList();
    }


    /********************* 添加 *****************************/


    @Override
    public void addCompanyList(selectionValue s) {
        dao.addCompanyList(s);
    }

    @Override
    public void addDepartmentList(selectionValue s) {
        dao.addDepartmentList(s);
    }

    @Override
    public void addAreaList(selectionValue s) {
        dao.addAreaList(s);
    }

    @Override
    public void addTypeOneList(selectionValue s) {
        dao.addTypeOneList(s);
    }

    @Override
    public void addTypeTwoList(selectionValue s) {
        dao.addTypeTwoList(s);
    }

    @Override
    public void addFinancialFocusList(selectionValue s) {
        dao.addFinancialFocusList(s);
    }

    @Override
    public void addTypeFourList(selectionValue s) {
        dao.addTypeFourList(s);
    }

    @Override
    public void addTypeFiveList(selectionValue s) {
        dao.addTypeFiveList(s);
    }

    @Override
    public void addTypeSixList(selectionValue s) {
        dao.addTypeSixList(s);
    }

    @Override
    public void addSpecsList(selectionValue s) {
        dao.addSpecsList(s);
    }


    /********************* 删除 ******************************/

    @Override
    public Integer deleteCompanyList(selectionValue value) {
        return dao.deleteCompanyList(value);
    }

    @Override
    public Integer deleteDepartmentList(selectionValue value) {
        return dao.deleteDepartmentList(value);
    }

    @Override
    public Integer deleteAreaList(selectionValue value) {
        return dao.deleteAreaList(value);
    }

    @Override
    public Integer deleteTypeOneList(selectionValue value) {
        return dao.deleteTypeOneList(value);
    }

    @Override
    public Integer deleteTypeTwoList(selectionValue value) {
        return dao.deleteTypeTwoList(value);
    }

    @Override
    public Integer deleteFinancialFocusList(selectionValue value) {
        return dao.deleteFinancialFocusList(value);
    }

    @Override
    public Integer deleteTypeFourList(selectionValue value) {
        return dao.deleteTypeFourList(value);
    }

    @Override
    public Integer deleteTypeFiveList(selectionValue  value) {
        return dao.deleteTypeFiveList(value);
    }

    @Override
    public Integer deleteTypeSixList(selectionValue value) {
        return dao.deleteTypeSixList(value);
    }

    @Override
    public Integer deleteSpecsList(selectionValue value) {
        return dao.deleteSpecsList(value);
    }
}
